/*******************************************************************************
* Project: QSAR(Cute Software Architecture) 
*
* Copyright: Copyright(C) 2024 by YuetingBen, All Rights Reserved
*
* File name: CanIf.c
*
* Brief: ;
*
* Author: Yueting.Ben
*
* Module: CanIf
*
*******************************************************************************/


/** HEADER FILES **/
#include "CanIfCfg.h"


/** TYPEDEF DEFINITION **/


/** MACRO DEFINITION **/


/** LOCAL FUNCTION DECLARATION **/
const CanIf_TxPduCfgType Canif_TxPduCfg[CANIF_TX_INDEX_MAX];
const CanIf_RxPduCfgType Canif_RxPduCfg[CANIF_RX_INDEX_MAX];

const PduIndicationFuncType Canif_RxIndicationFuncCfg[CANIF_RX_INDEX_MAX];

/** LOCAL DATA DEFINITION **/
const CanIf_TxPduCfgType Canif_TxPduCfg[CANIF_TX_INDEX_MAX]= 
{
    /* CanId       Length     CanType */
    {0x0101u,     8u          },
    {0x0102u,     8u          },
    {0x0720u,     8u          },
};


const CanIf_RxPduCfgType Canif_RxPduCfg[CANIF_RX_INDEX_MAX] = 
{
    /* CanId       Length     UpperPduId */
    {0x0201u,     8u,           0 },
    {0x0202u,     8u,           0 },
    {0x0710u,     8u,          CANTP_RX_ID_0},
    {0x07DFu,     8u,          CANTP_RX_ID_1}
};

const PduIndicationFuncType Canif_RxIndicationFuncCfg[CANIF_RX_INDEX_MAX] = 
{
    PduR_CanIfRxIndication,
    PduR_CanIfRxIndication,
    CanTp_RxIndication,
    CanTp_RxIndication
};